import http from "@/server/http";

// 累计次数
export const queryCumulativeFrequency = (params) => {
    return http({
        url: "/mobile/consult/index/data",
        method: "POST",
        data: params,
    })
}

//线上咨询记录
export const queryOnConRecordt = (params) => {
    return http({
        url: "/user/consult/OnlineConsultationRecord",
        method: "POST",
        data: params,
    })
}

//问题类型选择器
export const queryQuestionSelector = (params) => {
    return http({
        url: "/admin/Consult/questionSelector",
        method: "POST",
        data: params,
    })
}

//未读记录  
export const queryUnreadRecords= (params) => {
    return http({
        url: "/mobile/consult/index/unread_records",
        method: "POST",
        data: params,
    })
}



//线上咨询聊天内容
export const queryConsultMeg= (params) => {
    return http({
        url: "/user/consult/OnlineMessage",
        method: "POST",
        data: params,
    })
}

//发送消息 
export const sendMeg= (params) => {
    return http({
        url: "/user/consult/onlineSendMessage",
        method: "POST",
        data: params,
    })
}

//删除线上咨询记录 
export const delOnConRecord= (params) => {
    return http({
        url: "/user/consult/OnlineConsultationRecordDel",
        method: "POST",
        data: params,
    })
}

//线下预约记录 
export const queryOffConRecord= (params) => {
    return http({
        url: "/user/consult/OfflineConsultationRecord",
        method: "POST",
        data: params,
    })
}

//取消线下预约 /user/consult/OfflineCancel
export const cancelOffReservation= (params) => {
    return http({
        url: "/user/consult/OfflineCancel",
        method: "POST",
        data: params,
    })
}

//线下预约记录-详情
export const queryOffConRecordDet= (params) => {
    return http({
        url: "/user/consult/OfflineConsultationRecordInfo",
        method: "POST",
        data: params,
    })
}

//删除线下记录 
export const delOffConRecord= (params) => {
    return http({
        url: "/user/consult/OfflineConsultationRecordDel",
        method: "POST",
        data: params,
    })
}

// 提交线下咨询测评任务答案
export const subOfflineConsultResult= (params) => {
    return http({
        url: "/user/consult/addConsultOfflineResult",
        method: "POST",
        data: params,
    })
}
//获取线下测评任务问题 
export const queryOffEvQuestions= (params) => {
    return http({
        url: "/admin/task/getTaskRatingScaleInfo",
        method: "POST",
        data: params,
    })
}

//线上咨询记录-删除
export const delOnConsultationRecord= (params) => {
    return http({
        url: "/user/consult/OnlineConsultationRecordDel",
        method: "POST",
        data: params,
    })
}


